package com.example.springbootvue3.controller;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Data
@RestController
@RequestMapping("/")
@ConfigurationProperties(prefix = "email")
public class hellocontroller {
    private String user;
    private String age;
    private String school;

    @GetMapping("/hello")
    public String hello() {
        this.setUser("heyi");
        return user + " " + age + " " + school;
    }
}
